﻿using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace CPPProject.CPP
{
    /***********************/
    /*序列号配置表*/
    /***********************/
    [Table("CPPSequence")]
    public class CPPSequence: Entity<int>, IHasCreationTime, IMustHaveTenant, IModificationAudited
    {
        public int TenantId { get; set; }
        public long? LastModifierUserId { get; set; }
        public DateTime? LastModificationTime { get; set; }
        public long? CreatorUserId { get; set; }
        public DateTime CreationTime { get; set; }
        /// <summary>
        /// 序列号标识
        /// </summary>
        [Required, MaxLength(50)]
        public string Seq_Name { get; set; }
        /// <summary>
        /// 序列号名称
        /// </summary>
        [Required, MaxLength(50)]
        public string Seq_Desc { get; set; }
        /// <summary>
        /// 序列号起始字母
        /// </summary>
        [Required, MaxLength(50)]
        public string Leading_Str { get; set; }
        /// <summary>
        /// 序列号中间数字填充位数
        /// </summary>
        [Required, MaxLength(50)]
        public string Formatter { get; set; }
        /// <summary>
        /// 序列号跨度
        /// </summary>
        public int Step { get; set; }
        /// <summary>
        /// 序列号
        /// </summary>
        public int Last_Value { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [ MaxLength(50)]
        public string Remark { get; set; }

    }
}
